package T02;

import java.util.Scanner;

public class task1 {

	public static void t1() {
		Scanner sc = new Scanner(System.in);
		int[][] A = new int[30][5];
		for (int i = 0; i < 30; i++) {
			for (int j = 0; j < 5; j++) {
				A[i][j] = sc.nextInt();
			}
		}
		int[] B = new int[30];
		for (int i = 0; i < 30; i++) {
			B[i] = A[i][0] + A[i][1] + A[i][2] + A[i][3] + A[i][4];
		}
		for (int i = 0; i < B.length; i++) {
			System.out.println(B[i] / 5);
		}
	}

	public static void main(String[] args) {
		t1();
	}

}
